// @ts-ignore
import axiosInstance from "~/api";

export const getTopTenComments = () => {
    return axiosInstance.get('/comments/ten')
}
export const getMindfulComments = () => {
    return axiosInstance.get('/comments/topSix')
}

export const getComments = (params: any) => {
    return axiosInstance.get('/comments', {params: params})
}

export const publishComment = (params: any) => {
    return axiosInstance.post('/comments/save', params)
}

export const getRepliesByCommentId = (commentId: any) => {
    return axiosInstance.get(`/comments/${commentId}/replies`)
}
